module.exports = {
    // publicPath: './',
    css: {
        loaderOptions: {
            css: {},
            sass: {
                prependData: `@import "~@/assets/variables.sass`
            },
            postcss: {
                plugins: [
                    require('postcss-px2rem-exclude')({
                        // 以设计稿750为例， 750 / 10 = 75
                        remUnit: 75,
                        exclude: /node_modules/
                    }),
                ]
            }
        }
    },
    devServer: {
        proxy: {
            '/api': {
                // target:'http://oss.dev.icasc.cn',
                target:'http://oss.app.icasc.cn/',
                ws:true,
                pathRewrite: {'/api': ''},
                changeOrigin: true
            }
        }
    }
}
